package com.tomorrow.weather.adapter;

import java.util.List;

import com.tomorrow.weather.entity.WeatherData;

import android.os.Parcelable;
import android.support.v4.view.PagerAdapter;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

public class WeatherAdapter extends PagerAdapter
{
	List<WeatherData> weatherDatas;

	public WeatherAdapter()
	{
	}

	public WeatherAdapter(List<WeatherData> weatherDatas)
	{
		super();
		this.weatherDatas = weatherDatas;
	}

	@Override
	public int getCount()
	{

		return weatherDatas.size();
	}

	@Override
	public boolean isViewFromObject(View arg0, Object arg1)
	{

		return false;
	}

	@Override
	public void destroyItem(ViewGroup container, int position, Object object)
	{
		super.destroyItem(container, position, object);
	}

	@Override
	public void finishUpdate(ViewGroup container)
	{
		super.finishUpdate(container);
	}

	@Override
	public int getItemPosition(Object object)
	{
		return super.getItemPosition(object);
	}

	@Override
	public Object instantiateItem(ViewGroup container, int position)
	{
		
		return super.instantiateItem(container, position);
	}

	@Override
	public void notifyDataSetChanged()
	{
		super.notifyDataSetChanged();
	}

	@Override
	public void restoreState(Parcelable state, ClassLoader loader)
	{
		super.restoreState(state, loader);
	}

	@Override
	public Parcelable saveState()
	{
		return super.saveState();
	}

	@Override
	public void startUpdate(View container)
	{
		super.startUpdate(container);
	}

	@Override
	public void startUpdate(ViewGroup container)
	{
		super.startUpdate(container);
	}
	
	class WeatherHold
	{
		public TextView tvCityweatherCity;
		public TextView tvCityweatherTemp;
		public TextView tvCityweatherWeather;
		public TextView tvCityweatherWS;
		public TextView tvCityweatherSD;
		public TextView tvCityweatherIndexUV;
		
		public TextView tvForecastWeek2;
		public ImageView tvForecastIcon2;
		public TextView tvForecasTemp2;
		
		public TextView tvForecastWeek3;
		public ImageView tvForecastIcon3;
		public TextView tvForecasTemp3;
		
		public TextView tvForecastWeek4;
		public ImageView tvForecastIcon4;
		public TextView tvForecasTemp4;
		
		public TextView tvForecastWeek5;
		public ImageView tvForecastIcon5;
		public TextView tvForecasTemp5;
		
		
		
	}
}
